package org.qiyu.live.common.interfaces.utils;

import ch.qos.logback.core.PropertyDefinerBase;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.concurrent.ThreadLocalRandom;

/**
 * @ClassName: IpLogConversionRule
 * @Description: TODO
 * @Author zhangguangyan
 * @Date 2023/08/22/ 21:09:25
 * @Version 1.0
 */
public class IpLogConversionRule extends PropertyDefinerBase {
    @Override
    public String getPropertyValue() {
        return null;
    }
    private String getLogIndex(){
        try {
            return InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        return String.valueOf(ThreadLocalRandom.current().nextInt(10000));

    }
}
